package com.design.classroommanagement.teacher

import android.view.View
import com.design.classroommanagement.Pages
import com.design.classroommanagement.databinding.ActivityTeacherHomepageBinding
import com.laughing.lib.base.HBaseFragment
import com.laughing.lib.base.HBaseViewModel
import com.laughing.lib.base.getVm
import com.laughing.lib.utils.openPage

class TeacherHomeFragment : HBaseFragment<HBaseViewModel, ActivityTeacherHomepageBinding>() {
    override fun initCompleted() {
        binding.apply {
            btTcheck.setOnClickListener(View.OnClickListener { //为了跳转到课程表界面，
                openPage(Pages.BookmarkListFragment)
            })
            btTupdate.setOnClickListener(View.OnClickListener { //为了跳转到修改界面，
                openPage(Pages.TeacherUpdateFragment)
            })
            btTdelete.setOnClickListener(View.OnClickListener { //为了跳转到删除界面，
                openPage(Pages.TeacherDeleteFragment)
            })
            btTbookmark.setOnClickListener(View.OnClickListener { //为了跳转到添加课程进度界面，
                openPage(Pages.TeacherBookmarkProgressFragment)
            })
            btTclass.setOnClickListener(View.OnClickListener { //为了跳转到班级界面，
                openPage(Pages.TeacherClassroomFragment)
            })
        }
    }
}